package com.huaifang.yan;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

/**
 * @author yanhuaifang
 */
@SpringBootApplication
@EnableDubbo
@ImportResource(value = "classpath:dubbo-consumer-a.xml")
public class ConsumerApplicationA {

    public static void main(String[] args) {
        System.setProperty("spring.profiles.active", "dubbo-a");
        SpringApplication.run(ConsumerApplicationA.class, args);
    }
}
